package com.imooc.miaosha.redis;

/**
 * @author liyuhui
 */
public class MiaoshaUserKey extends BasePrefix{
    //token的过期时间为两天
    public static final int TOKEN_EXPIRE = 3600*24 * 2;

    private MiaoshaUserKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static MiaoshaUserKey token = new MiaoshaUserKey(TOKEN_EXPIRE, "tk");
    //对象缓存希望是永久有效的
    public static MiaoshaUserKey getById = new MiaoshaUserKey(0, "id");
}
